package com.woniuxy.thread.commucation;

public class Test {

	public static void main(String[] args) {
		Resource resource = new Resource();
		for (int i = 0; i < 10; i++) {
			new Thread(new ProduceThread(resource)).start();
		}
		for (int i = 0; i < 5; i++) {
			new Thread(new ConsumerThread(resource)).start();
		}
	}

}
